package cn.iocoder.yudao.module.bpm.controller.admin.journalapply.vo;

import cn.iocoder.yudao.module.bpm.controller.admin.journal.vo.JournalRespVO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 期刊申请 Response VO")
@Data
@ExcelIgnoreUnannotated
public class JournalApplyRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11090")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "申请编号")
    @ExcelProperty("申请编号")
    private String applyCode;

    @Schema(description = "申请人", example = "10056")
    @ExcelProperty("申请人")
    private Long applyUserId;

    @Schema(description = "联系方式")
    @ExcelProperty("联系方式")
    private String phone;

    @Schema(description = "使用期限")
    @ExcelProperty("使用期限")
    private LocalDateTime useEndTime;

    @Schema(description = "使用理由")
    @ExcelProperty("使用理由")
    private String applyReson;

    @Schema(description = "附件")
    @ExcelProperty("附件")
    private String file;

    @Schema(description = "申请状态")
    @ExcelProperty("申请状态")
    private String applyStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "申请期刊集合")
    private List<JournalRespVO> journalDetails;

    @Schema(description = "流程编号")
    private String processInstanceId;

    @Schema(description = "审批结果", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status; // 参见 BpmProcessInstanceStatusEnum 枚举

}